package com.wave.wavesystem.serve.pojo.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.mybatisflex.core.keygen.KeyGenerators;
import lombok.Data;

@Data
@Table(value = "comment")
public class Comment {
    @Id(keyType = KeyType.Generator, comment = "主键", value = KeyGenerators.snowFlakeId)
    private Long id;

    @Column(value = "postId", comment = "帖子id")
    private Long postId;

    @Column(value = "authorId", comment = "评论者id")
    private Long authorId;

    @Column(value = "content", comment = "评论内容")
    private String content;

    @Column(value = "likecCount", comment = "点赞数")
    private Integer likecCount;

    @Column(value = "replyTo", comment = "回复的评论id，如果是顶级评论则为null")
    private Long replyTo;

    @Column(value = "status", comment = "评论状态 0-审核 1-可见")
    private Integer status;

    @Column(value = "createTime", comment = "评论时间")
    private String createTime;

    @Column(value = "isDeleted", comment = "是否删除")
    private Integer isDeleted;

}